package com.vmj.heap;

/**
 * Created by yangshoujun on 2017/9/17 下午12:03.
 */
public class ShimMethod {

    private static final VMClass shimClass = new VMClass();
    private static final Method shimMethod = new Method();

    static {
        shimClass.setName("~shim");

        shimMethod.setAccessFlags(AccessFlag.ACC_PUBLIC);
        shimMethod.setName("<return>");
        shimMethod.setClazz(shimClass);
        shimMethod.setCode(new byte[]{(byte) 0xb1});
    }

    public static Method getShipReturnMethod() {
        return shimMethod;
    }
}
